package com.webshop.JavaBean;

import java.util.List;

/**
 *CREATE TABLE `goods`  (
 `ID` int(30) NOT NULL AUTO_INCREMENT,
 `productName` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
 `isHot` varchar(2) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
 `owner` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
 `setAttribute` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
 `mainPic` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
 `state` int(2) NOT NULL,
 `createTime` varchar(30) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
 `category` int(10) NOT NULL,
 PRIMARY KEY (`ID`) USING BTREE
 ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic;

 *
 */
public class Goods {
    int ID;
    String productName;
    String isHot;
    String owner;
    String setAttribute;
    String mainPic;
    int  state;
    String createTime;
    String description;
    double minprice;
    double maxprice;
    int category;
    List<Picture> PicList;
    public List<Picture> getPicList() {
        return PicList;
    }

    public void setPicList(List<Picture> picList) {
        PicList = picList;
    }




    public int getID() {
        return ID;
    }

    public void setID(int ID) {
        this.ID = ID;
    }

    public String getProductName() {
        return productName;
    }

    public void setProductName(String productName) {
        this.productName = productName;
    }

    public String getIsHot() {
        return isHot;
    }

    public void setIsHot(String isHot) {
        this.isHot = isHot;
    }

    public String getOwner() {
        return owner;
    }

    public void setOwner(String owner) {
        this.owner = owner;
    }

    public String getSetAttribute() {
        return setAttribute;
    }

    public void setSetAttribute(String setAttribute) {
        this.setAttribute = setAttribute;
    }

    public String getMainPic() {
        return mainPic;
    }

    public void setMainPic(String mainPic) {
        this.mainPic = mainPic;
    }

    public int getState() {
        return state;
    }

    public void setState(int state) {
        this.state = state;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    public int getCategory() {
        return category;
    }

    public void setCategory(int category) {
        this.category = category;
    }


    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }


    public double getMinprice() {
        return minprice;
    }

    public void setMinprice(double minprice) {
        this.minprice = minprice;
    }

    public double getMaxprice() {
        return maxprice;
    }

    public void setMaxprice(double maxprice) {
        this.maxprice = maxprice;
    }

    @Override
    public String toString() {
        return "Goods{" +
                "ID=" + ID +
                ", productName='" + productName + '\'' +
                ", isHot='" + isHot + '\'' +
                ", owner='" + owner + '\'' +
                ", setAttribute='" + setAttribute + '\'' +
                ", mainPic='" + mainPic + '\'' +
                ", state=" + state +
                ", createTime='" + createTime + '\'' +
                ", description='" + description + '\'' +
                ", minprice=" + minprice +
                ", maxprice=" + maxprice +
                ", category=" + category +
                ", PicList=" + PicList +
                '}';
    }
}

